<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>修改员工信息页面</title>
    <link rel="stylesheet" href="webjars/bootstrap/3.3.5/css/bootstrap.css" type="text/css">
    <script src="webjars/jquery/3.4.1/jquery.js"></script>
    <script src="webjars/bootstrap/3.3.5/js/bootstrap.js"></script>
    <style>
        input{
            width: 200px ;
            height: 25px;
            background-color: #f0f8ff;
            margin-bottom: 5px;
        }
        input:hover{
            border:2px #00ff00 solid;
        }
        span{
            width:50px ;
        }
    </style>
</head>
<body>
<legend>修改部门信息</legend><br>
<form action="/employee" method="post">
    <input type="text" name="id" th:value="${emp.id}" readonly style="display:none">
    部门名称：<input type="text" name="name" th:value="${emp.name}"><br>
    性&emsp;&emsp;别：<input type="text" name="sex" th:value="${emp.sex}" list="sts"><br>
    <datalist id="sts" style="display:none;">
        <option value="男">男</option>
        <option value="女">女</option>
    </datalist>
    年&emsp;&emsp;龄：<input type="date" name="age" th:value="${emp.age}"><br>
    员工号：&emsp;<input type="text" name="emnumber" th:value="${emp.emnumber}" readonly><br>
    员工类别：<input type="text" name="type" th:value="${emp.type}" list="ty"><br>
    <datalist id="ty" style="display:none;">
        <option value="医生">医生</option>
        <option value="护工">护工</option>
        <option value="健康管家">健康管家</option>
        <option value="操作员">操作员</option>
        <option value="技术">技术</option>
        <option value="护士">护士</option>
    </datalist>
    入职时间：<input type="date" name="entrytime" th:value="${emp.entrytime}"><br>
    操作人：&emsp;<input type="text" name="operator" th:value="${emp.operator}"><br>
    操作时间：<input type="date" name="optime" th:value="${emp.optime}"><br>
    职&emsp;&emsp;务：<input type="text" name="position" th:value="${emp.position}"><br>
    职&emsp;&emsp;称：<input type="text" name="jobtitle" th:value="${emp.jobtitle}"><br>
    人员状态：<input type="text" name="status" th:value="${emp.status}" list="lst"><br>
    <datalist id="lst" style="display:none;">
        <option value="在职">在职</option>
        <option value="离职">离职</option>
    </datalist>
    简&emsp;&emsp;介：<input type="text" name="introduction" th:value="${emp.introduction}"><br>
    备&emsp;&emsp;注：<input type="text" name="remarks" th:value="${emp.remarks}"><br>
    <!--添加隐藏域-->
    <input type="hidden" name="_method" value="put">
    <button>提交修改</button>
    <button type="button" onclick="history.go(-1)">返回</button>
</form>

</body>
</html>